<?php

use Illuminate\Database\Seeder;
use Yangyifan\Administrator\Config\Model\Config;

class ConfigTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        echo "Start: " . __CLASS__ . " \r\n";

        factory(Config::class, 50)->create()->each(function ($u) {
            $u->save(factory(Config::class)->make()->toArray());
        });

        echo "Finished: " . __CLASS__ . " \r\n";
    }
}
